package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.RoomEntryRecordMapper;
import com.ruoyi.system.domain.RoomEntryRecord;
import com.ruoyi.system.service.IRoomEntryRecordService;

/**
 * 进房记录Service业务层处理
 * 
 * @author xyz
 * @date 2025-05-25
 */
@Service
public class RoomEntryRecordServiceImpl implements IRoomEntryRecordService 
{
    @Autowired
    private RoomEntryRecordMapper roomEntryRecordMapper;

    /**
     * 查询进房记录
     * 
     * @param id 进房记录主键
     * @return 进房记录
     */
    @Override
    public RoomEntryRecord selectRoomEntryRecordById(Long id)
    {
        return roomEntryRecordMapper.selectRoomEntryRecordById(id);
    }

    /**
     * 查询进房记录列表
     * 
     * @param roomEntryRecord 进房记录
     * @return 进房记录
     */
    @Override
    public List<RoomEntryRecord> selectRoomEntryRecordList(RoomEntryRecord roomEntryRecord)
    {
        return roomEntryRecordMapper.selectRoomEntryRecordList(roomEntryRecord);
    }

    /**
     * 新增进房记录
     * 
     * @param roomEntryRecord 进房记录
     * @return 结果
     */
    @Override
    public int insertRoomEntryRecord(RoomEntryRecord roomEntryRecord)
    {
        return roomEntryRecordMapper.insertRoomEntryRecord(roomEntryRecord);
    }

    /**
     * 修改进房记录
     * 
     * @param roomEntryRecord 进房记录
     * @return 结果
     */
    @Override
    public int updateRoomEntryRecord(RoomEntryRecord roomEntryRecord)
    {
        return roomEntryRecordMapper.updateRoomEntryRecord(roomEntryRecord);
    }

    /**
     * 批量删除进房记录
     * 
     * @param ids 需要删除的进房记录主键
     * @return 结果
     */
    @Override
    public int deleteRoomEntryRecordByIds(Long[] ids)
    {
        return roomEntryRecordMapper.deleteRoomEntryRecordByIds(ids);
    }

    /**
     * 删除进房记录信息
     * 
     * @param id 进房记录主键
     * @return 结果
     */
    @Override
    public int deleteRoomEntryRecordById(Long id)
    {
        return roomEntryRecordMapper.deleteRoomEntryRecordById(id);
    }
}
